From daf36bda9373732e2f0ea232809ee5e442047bce Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 15 Aug 2004 06:36:23 +0000 Subject: [PATCH] Make the use of S_ISFIFO and S_ISSOCK conditional. (#150146, Gustavo Sun Aug 15 02:31:55 2004 Matthias Clasen * gtk/gtkfilesystemunix.c (get_icon_type_from_stat): Make the use of S_ISFIFO and S_ISSOCK conditional. (#150146, Gustavo Carneiro) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtkfilesystemunix.c | 4 ++++ 5 files changed, 28 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5cac1e9f58..13662d8819 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun Aug 15 02:31:55 2004 Matthias Clasen + + * gtk/gtkfilesystemunix.c (get_icon_type_from_stat): Make + the use of S_ISFIFO and S_ISSOCK conditional. (#150146, + Gustavo Carneiro) + 2004-08-14 Tor Lillqvist * gtk/gtkfilechooserdefault.c (shortcuts_append_home, diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 5cac1e9f58..13662d8819 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Sun Aug 15 02:31:55 2004 Matthias Clasen + + * gtk/gtkfilesystemunix.c (get_icon_type_from_stat): Make + the use of S_ISFIFO and S_ISSOCK conditional. (#150146, + Gustavo Carneiro) + 2004-08-14 Tor Lillqvist * gtk/gtkfilechooserdefault.c (shortcuts_append_home, diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 5cac1e9f58..13662d8819 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Sun Aug 15 02:31:55 2004 Matthias Clasen + + * gtk/gtkfilesystemunix.c (get_icon_type_from_stat): Make + the use of S_ISFIFO and S_ISSOCK conditional. (#150146, + Gustavo Carneiro) + 2004-08-14 Tor Lillqvist * gtk/gtkfilechooserdefault.c (shortcuts_append_home, diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 5cac1e9f58..13662d8819 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Sun Aug 15 02:31:55 2004 Matthias Clasen + + * gtk/gtkfilesystemunix.c (get_icon_type_from_stat): Make + the use of S_ISFIFO and S_ISSOCK conditional. (#150146, + Gustavo Carneiro) + 2004-08-14 Tor Lillqvist * gtk/gtkfilechooserdefault.c (shortcuts_append_home, diff --git a/gtk/gtkfilesystemunix.c b/gtk/gtkfilesystemunix.c index 701736317e..4bb5c212c5 100644 --- a/gtk/gtkfilesystemunix.c +++ b/gtk/gtkfilesystemunix.c @@ -590,10 +590,14 @@ get_icon_type_from_stat (struct stat *statp) return ICON_CHARACTER_DEVICE; else if (S_ISDIR (statp->st_mode)) return ICON_DIRECTORY; +#ifdef S_ISFIFO else if (S_ISFIFO (statp->st_mode)) return ICON_FIFO; +#endif +#ifdef S_ISSOCK else if (S_ISSOCK (statp->st_mode)) return ICON_SOCKET; +#endif else return ICON_REGULAR; } -- 2.30.2